import httpRequest from '@/utils/request'

// 查询商品——点赞列表
export function listLike(query) {
	return httpRequest.request({
		url: '/market/like/list',
		method: 'get',
		params: query
	})
}

// 查询商品——点赞详细
export function getLike(id) {
	return httpRequest.request({
		url: '/market/like/' + id,
		method: 'get'
	})
}

// 新增商品——点赞
export function addLike(data) {
	return httpRequest.request({
		url: '/market/like',
		method: 'post',
		data: data
	})
}

// 修改商品——点赞
export function updateLike(data) {
	return httpRequest.request({
		url: '/market/like',
		method: 'put',
		data: data
	})
}

// 删除商品——点赞
export function delLike(id) {
	return httpRequest.request({
		url: '/market/like/' + id,
		method: 'delete'
	})
}